<template>
	<view :style="[{paddingTop:CustomBar+'px'}]">
		<cu-custom bgColor="bg-white" :isBack="true">
			<block slot="backText"></block>
			<block slot="content">运营模式</block>
		</cu-custom>
		<video object-fit="fill" autoplay poster="https://xarkbucket.oss-cn-hangzhou.aliyuncs.com/gead-poster.png" enable-play-gesture enable-progress-gesture src="https://xarkbucket.oss-cn-hangzhou.aliyuncs.com/videoParams.mp4"
		 vslide-gesture-in-fullscreen controls page-gesture	></video>
		<view class="shop-info-desc">
			<rich-text :nodes="htmlNodes"></rich-text>
		</view>
	</view>
</template>
 
<script>
	import htmlParser from '@/utils/html-parser'
	export default {
		data() {
			return {
				CustomBar: this.CustomBar,
				htmlNodes:''
			}
		},
		onReady() {
			uni.setNavigationBarColor({
				frontColor: '#000000',
				backgroundColor: '#ffffff'
			})
		},
		onLoad() {
			this.getYonghuNew()
		},
		methods:{
			// 获取用户须知
			getYonghuNew(){
				var that = this
				that.title = '用户须知'
				this.$request({
					url: '/Upgrade/get_mode_note',
					success: res => {
						if (res.data.status == 1) {
							var jsonText = res.data.data.content
							var htmlString = jsonText.replace(/\\/g, "").replace(/<img/g, "<img style=\"width:100%;height:auto;\"");
							htmlString = htmlString.replace(/[\r\n]/g,"");
							htmlString = htmlString.replace(/&nbsp;/g,"");
							that.htmlNodes = htmlParser(htmlString);
							uni.hideLoading()
						}
					},
					fail: () => {},
					complete: () => {}
				});
			},
		}
	}
</script>

<style scoped>
	video {
		width: 100%;
		height: 400rpx;
	}
	
	.shop-info-desc {
		font-size: 28rpx;
		line-height: 42rpx;
		letter-spacing: 1rpx;
		color: #333333;
		padding: 0 24rpx;
		box-sizing: border-box;
	}
</style>
